<?php
class ConductoresView extends CustomView
{

    public function verConductores($vars = array())
    {
        $this->top();
        $this->setTemplate('ver');
        $vars['pagination'] = $this->buildPagination($vars['pagination_link'], $vars['conductores']);
        $this->parse('ver', $vars);
        {
            if (!empty($vars['conductores']['results']))
            {
                foreach ($vars['conductores']['results'] as $conductor)
                {
                    $this->parse('conductor', $conductor);
                }
            }
            else
            {
                $this->parse('sin_resultados');
            }
        }
        $this->parse('ver', $vars);
        $this->bottom();
    }

    public function nuevoConductor($vars = array())
    {
        $this->top();
        $this->setTemplate('nuevo');
        $this->parse('nuevo', $vars);
        $this->bottom();
    }

    public function editarConductor($vars = array())
    {
        $this->top();
        $this->setTemplate('editar');
        $this->parse('editar', $vars);
        $this->bottom();
    }
}
?>